home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / Storage / LinkDlgs.r < prev    next >
Encoding:
Text File  |  1996-08-28  |  32.4 KB  |  1,265 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        LinkDlgs.r
  3.  
  4.     Contains:    resources for data interchange dialogs
  5.  
  6.     Owned by:    Craig Carper
  7.  
  8.     Copyright:    © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>      6/7/96    eeh        T10017: move most stuff to LnkDlgEx.r
  13.         <19>    10/16/95    CC        GM 1293229: 'MENU' resources must be
  14.                                     nonpurgeable.
  15.                                     GM 1292157: Changed "No Kinds" to
  16.                                     "Unknown"; "None Available" to "None for
  17.                                     this Kind".
  18.         <18>     9/20/95    TÇ        1285201 GM: Use
  19.                                     alertPositionParentWindowScreen for dialogs
  20.         <17>     8/23/95    CC        1278840: Added kPasteAsEmbedEditorText
  21.                                     item.
  22.         <16>     7/28/95    CC        1242615: Made all resources purgeable.
  23.                                     1242576: Removed resources for Others
  24.                                     dialog.
  25.         <15>     4/27/95    CC        1243348: Removed BreakLinkAlert resources.
  26.         <14>     4/25/95    CC        1242555: Entered as bug 1242615 to check
  27.                                     for purgeable resources.
  28.                                     1242555: $5 entered as bug 1242617.
  29.         <13>     3/27/95    CC        1229640: Added items for editor popup and
  30.                                     static text.
  31.         <12>     3/17/95    CC        1220339: Changed title of Translation
  32.                                     Choices dialog.
  33.         <11>      3/9/95    CC        1220342: Tweeked layout of others dialog.
  34.         <10>      3/3/95    CC        1223861 Added link status and link edition
  35.                                     alert resources.
  36.          <9>     2/24/95    CC        1153783: Changed link edition filename
  37.                                     template string.
  38.          <8>     2/15/95    CC        1194705 Changed titles of link info dialogs
  39.                                     to "Link Destination Info" and "Link Source
  40.                                     Info".
  41.                                     1196831 Added strings for constructing size
  42.                                     of links.
  43.                                     1153942 Changed "Modified:" to "Updated:"
  44.                                     in Link Info dialogs
  45.                                     1220324 Removed static text items for
  46.                                     labeling radio buttons.
  47.                                     1191537 Revised Link Update alert
  48.                                     resources.
  49.                                     1220318 Data Interchange Dialogs need to
  50.                                     use 'finf' resource for localization
  51.                                     1191537 Need better wording in circular
  52.                                     link alert.
  53.                                     1220324 Added 'CNTL' resources for controls
  54.                                     that use window font.
  55.          <7>      2/7/95    CC        1211295: Added two items to PasteAs dialog:
  56.                                     kPasteAsKindLabel kPasteAsKindText.
  57.          <6>      2/1/95    CC        1153347: Added 'STR ' resource for
  58.                                     notification.
  59.          <5>     1/10/95    CC        1153930: Added translation choices to Paste
  60.                                     As dialog.
  61.          <4>     10/7/94    CC        1160232 - Changes to link update alerts.
  62.          <3>     9/20/94    CC        1160232 - Added resources for link cycle
  63.                                     Alert dialog.
  64.          <2>     7/31/94    CC        Initialize kind string of link destination
  65.                                     dialog to "(Unknown)".
  66.          <1>     6/24/94    CC        first checked in
  67.          <3>      6/3/94    CC        Fixed dctb resources.
  68.          <2>     3/17/94    CC        Added resources for ShowLinkSourceInfo()
  69.                                     and ShowLinkDestinationInfo(). (1151329)
  70.          <1>     3/14/94    CC        first checked in
  71.          <0>     3/14/94    CC        Resources for Paste As dialog (1144253).
  72.  
  73. */
  74. #define _USE_DIALOGS_LIB_
  75.  
  76. // Picture items are used for the merge and embed icons because 32x32 ICONs
  77. // don't work well.  The desired icon size is 19(high)x16(width).  If the
  78. // display item is the desired size, the ICON is scaled.  If the display item
  79. // is 32x32, the ICONs are drawn AFTER their radio buttons and can obscure them,
  80. // even though the radio buttons are later in the item sequence.
  81.  
  82. #define SystemSevenOrBetter 1            // we want the extended types
  83. #define    SystemSevenOrLater    1            // Types.r uses this variable
  84.  
  85. #define oldTemp        // Needed to use old-style 'dctb' resource
  86. #include "Types.r"
  87. #undef oldTemp        // End of 'dctb' fix
  88.  
  89. #include "SysTypes.r"
  90.  
  91.  
  92. #include "LinkDefs.h"
  93.  
  94. #ifndef _USE_DIALOGS_LIB_
  95.  
  96. #define kDialogHeight    223
  97. #define kDialogWidth    222
  98.  
  99. #define kTopBegin                      7
  100. #define kLeading                      4
  101. #define kLeftBegin                     10
  102.  
  103. #define kLargeToSmallVerticalOffset      1
  104. #define kSmallLineHeight             12
  105. #define kRightStop                    213
  106. #define kBottomStop                    214
  107. #define kStdButtonHeight             20
  108. #define kOkCancelWidth                 60
  109. #define kOkCancelSep                 13
  110. #define kCheckboxHeight                 14
  111. #define kCheckboxWidth                 14
  112. #define kRadioButtonHeight             14
  113. #define kRadioButtonWidth             14
  114. #define kCheckboxVertSep              4
  115. #define kCheckboxHorizSep              4
  116. #define kRadioBtnVertSep              3
  117. #define kRadioBtnHorizSep              4
  118. #define kPopupHeight                 19
  119.  
  120. #define kPasteWithLinkTextTop        kTopBegin+kLargeToSmallVerticalOffset
  121. #define kPasteWithLinkTextLeft        kLeftBegin+kCheckboxWidth+kCheckboxHorizSep
  122. #define kPasteWithLinkTextWidth        78
  123. #define kPasteWithLinkTextRight        kPasteWithLinkTextLeft+kPasteWithLinkTextWidth
  124.  
  125. #define kUpdateLinksTop                kTopBegin+kCheckboxHeight+kLeading
  126. #define kUpdateLinksLeft            kLeftBegin+kCheckboxWidth+kCheckboxHorizSep
  127. #define kUpdateLinksWidth            59
  128.  
  129. #define kAutomaticRadioBtnTop        kTopBegin+kCheckboxHeight+kRadioBtnVertSep
  130. #define kAutomaticRadioBtnLeft        kLeftBegin+kCheckboxWidth+kCheckboxHorizSep+kUpdateLinksWidth+kCheckboxHorizSep
  131. #define kAutomaticTextTop            kAutomaticRadioBtnTop+kLargeToSmallVerticalOffset
  132. #define kAutomaticTextLeft            kAutomaticRadioBtnLeft+kRadioButtonWidth+kRadioBtnHorizSep
  133. #define kAutomaticTextWidth            68
  134. #define kAutomaticTextRight            kAutomaticTextLeft+kAutomaticTextWidth
  135. #define kAutoManRadioBtnSep            1
  136.  
  137. #define kManualRadioBtnTop            kAutomaticRadioBtnTop+kRadioButtonHeight+kAutoManRadioBtnSep
  138. #define kManualRadioBtnLeft            kAutomaticRadioBtnLeft
  139. #define kManualTextTop                kManualRadioBtnTop+kLargeToSmallVerticalOffset
  140. #define kManualTextLeft                kManualRadioBtnLeft+kRadioButtonWidth+kRadioBtnHorizSep
  141. #define kManualTextWidth            46
  142.  
  143. #define kManualTextRight            kManualTextLeft+kManualTextWidth
  144.  
  145. /* #define kHorizSepTop                kManualTextTop+kSmallLineHeight+kLeading */
  146. #define kHorizSepTop                62
  147.  
  148. #define kAtDestTextTop                72
  149.  
  150. #define kMergePictTop                90
  151. #define kMergePictHeight            19
  152. #define kMergePictWidth                16
  153.  
  154. #define kMergeRadioBtnTop            kMergePictTop+2        
  155. #define kMergeRadioBtnLeft            kLeftBegin+kMergePictWidth+kCheckboxHorizSep
  156. #define kMergeTextTop                kMergeRadioBtnTop+kLargeToSmallVerticalOffset
  157. #define kMergeTextLeft                kMergeRadioBtnLeft+kRadioButtonWidth+kRadioBtnHorizSep
  158. #define kMergeTextWidth                100
  159. #define kMergeTextRight                kMergeTextLeft+kMergeTextWidth
  160.  
  161. #define kEmbedPictTop                kMergePictTop+kMergePictHeight+3
  162. #define kEmbedPictHeight            kMergePictHeight
  163. #define kEmbedPictWidth                kMergePictWidth
  164.  
  165. #define kEmbedRadioBtnTop            kEmbedPictTop+2
  166. #define kEmbedRadioBtnLeft            kMergeRadioBtnLeft
  167. #define kEmbedTextTop                kEmbedRadioBtnTop+kLargeToSmallVerticalOffset
  168. #define kEmbedTextLeft                kMergeTextLeft
  169. #define kEmbedTextWidth                51
  170. #define kEmbedTextRight                kEmbedTextLeft+kEmbedTextWidth
  171.  
  172. #define kEmbedPopupTop                kEmbedRadioBtnTop-1
  173. #define kEmbedPopupLeft                kEmbedTextLeft+kEmbedTextWidth
  174.  
  175. #define kKindPopupTop                140
  176. #define kKindPopupLeft                kMergeRadioBtnLeft-2
  177. #define kKindTextWidth                33
  178.  
  179. #define kEditorPopupTop                kKindPopupTop+21
  180. #define kEditorPopupLeft            kMergeRadioBtnLeft-10
  181. #define kEditorTextWidth            41
  182.  
  183.  
  184. //-------------------------------------------------------------------------------------
  185. // Paste As Dialog
  186. //-------------------------------------------------------------------------------------
  187.  
  188. resource 'DLOG' (kPasteAsDlgID, "Paste As", purgeable) {
  189.     {0, 0, kDialogHeight, kDialogWidth},
  190.     movableDBoxProc,
  191.     invisible,
  192.     noGoAway,
  193.     0x0,
  194.     kPasteAsDlgID,
  195.     "Paste As",
  196.     alertPositionParentWindowScreen
  197. };
  198.  
  199. /* Color table for Paste As Dialog */
  200. resource 'dctb' (kPasteAsDlgID, "Paste As", purgeable) {
  201.     0,
  202.     0,
  203.     {
  204.         wContentColor,0xFFFF,0xFFFF,0xFFFF
  205.     }
  206. };
  207.  
  208. /* Item list for Paste As… dialog */
  209. resource 'DITL' (kPasteAsDlgID,  "Paste As", purgeable) {
  210.     {    /* array DITLarray: 23 elements */
  211.         /* [1] */
  212.         { kBottomStop-kStdButtonHeight, 
  213.           kRightStop-kOkCancelWidth, 
  214.           kBottomStop, 
  215.           kRightStop
  216.         },
  217.         Button {
  218.             enabled,
  219.             "Paste"
  220.         },
  221.         /* [2] */
  222.         { kBottomStop-kStdButtonHeight,
  223.           kRightStop-kOkCancelWidth-kOkCancelSep-kOkCancelWidth,
  224.           kBottomStop,
  225.           kRightStop-kOkCancelWidth-kOkCancelSep
  226.         },
  227.         Button {
  228.             enabled,
  229.             "Cancel"
  230.         },
  231.         
  232.         /* [3] Paste with Link checkbox */
  233.         { kTopBegin,
  234.           kLeftBegin,
  235.           kTopBegin+kCheckboxHeight,
  236.           kPasteWithLinkTextRight
  237.         },
  238.         Control {
  239.             enabled,
  240.             kPasteAsCheckboxCtrlID
  241.         },
  242.  
  243.         /* [4] Update Links label (active appearance) */
  244.         { kUpdateLinksTop,
  245.           kUpdateLinksLeft,
  246.           kUpdateLinksTop+kLargeToSmallVerticalOffset+kSmallLineHeight,
  247.           kUpdateLinksLeft+kUpdateLinksWidth
  248.         },
  249.         StaticText {
  250.             disabled,
  251.             "Get Updates:"
  252.         },
  253.  
  254.         /* [5] Update Links label (inactive appearance) */
  255.         { kUpdateLinksTop,
  256.           kUpdateLinksLeft,
  257.           kUpdateLinksTop+kLargeToSmallVerticalOffset+kSmallLineHeight,
  258.           kUpdateLinksLeft+kUpdateLinksWidth
  259.         },
  260.         StaticText {
  261.             disabled,
  262.             "Get Updates:"
  263.         },
  264.  
  265.         /* [6] Automatic update radio button */
  266.         { kAutomaticRadioBtnTop,
  267.           kAutomaticRadioBtnLeft,
  268.           kAutomaticRadioBtnTop + kRadioButtonHeight,
  269.           kAutomaticTextRight
  270.         },
  271.         Control {
  272.             enabled,
  273.             kPasteAsAutoRadioBtnCtrlID
  274.         },
  275.  
  276.         /* [7] Manual update radio button */
  277.         { kManualRadioBtnTop,
  278.           kManualRadioBtnLeft,
  279.           kManualRadioBtnTop + kRadioButtonHeight,
  280.           kManualTextRight
  281.         },
  282.         Control {
  283.             enabled,
  284.             kPasteAsManualRadioBtnCtrlID
  285.         },
  286.  
  287.         /* [8] Horizontal Separator */
  288.         { kHorizSepTop,
  289.           kLeftBegin,
  290.           kHorizSepTop + 1,
  291.           kRightStop
  292.         },
  293.         UserItem {
  294.             enabled
  295.         },
  296.  
  297.         /* [9] At the destination text */
  298.         { kAtDestTextTop,
  299.           kLeftBegin,
  300.           kAtDestTextTop + kSmallLineHeight,
  301.           kRightStop
  302.         },
  303.         StaticText {
  304.             disabled,
  305.             "At the Destination:"
  306.         },
  307.  
  308.         /* [10] Merge Pict */
  309.         { kMergePictTop,
  310.           kLeftBegin,
  311.           kMergePictTop + kMergePictHeight,
  312.           kLeftBegin + kMergePictWidth
  313.         },
  314.         Picture {
  315.             enabled,
  316.             kPasteAsMergePictID
  317.         },
  318.  
  319.         /* [11] User item to disable previous item */
  320.         { 0,0,0,0 },
  321.         UserItem {
  322.             disabled,
  323.         },
  324.  
  325.         /* [12] Merge radio button */
  326.         { kMergeRadioBtnTop,
  327.           kMergeRadioBtnLeft,
  328.           kMergeRadioBtnTop + kRadioButtonHeight,
  329.           kMergeTextRight
  330.         },
  331.         Control {
  332.             enabled,
  333.             kPasteAsMergeRadioBtnCtrlID
  334.         },
  335.  
  336.         /* [13] Embed Pict */
  337.         { kEmbedPictTop,
  338.           kLeftBegin,
  339.           kEmbedPictTop + kEmbedPictHeight,
  340.           kLeftBegin + kEmbedPictWidth
  341.         },
  342.         Picture {
  343.             enabled,
  344.             kPasteAsEmbedPictID
  345.         },
  346.  
  347.         /* [14] User item to disable previous item */
  348.         { 0,0,0,0 },
  349.         UserItem {
  350.             disabled,
  351.         },
  352.  
  353.         /* [15] Embed radio button */
  354.         /* The label of the Embed As radio button overlaps the title of the Embed As popup. */
  355.         /* The radio button item must be before the popup item, so mouse clicks over the */
  356.         /* label are handled by the radio button item, not the popup item. */
  357.         /* Both controls draw the text; this causes problems when the popup is disabled, */
  358.         /* since it will dim the text and the radio button will appear inactive. */
  359.         { kEmbedRadioBtnTop,
  360.           kEmbedRadioBtnLeft,
  361.           kEmbedRadioBtnTop + kRadioButtonHeight,
  362.           kEmbedTextRight
  363.         },
  364.         Control {
  365.             enabled,
  366.             kPasteAsEmbedRadioBtnCtrlID
  367.         },
  368.  
  369.         /* [16] Embed As popup menu */
  370.         { kEmbedPopupTop,
  371.           kEmbedPopupLeft,
  372.           kEmbedPopupTop + kPopupHeight,
  373.           kRightStop
  374.         },
  375.         Control {
  376.             enabled,
  377.             kPasteAsEmbedPopupCntl
  378.         },
  379.  
  380.         /* [17] Kind popup menu */
  381.         { kKindPopupTop,
  382.           kKindPopupLeft,
  383.           kKindPopupTop + kPopupHeight,
  384.           kRightStop
  385.         },
  386.         Control {
  387.             enabled,
  388.             kPasteAsKindPopupCntl
  389.         },
  390.  
  391.         /* [18] Kind label */
  392.         /* Used when the popup is unavailable because selecting a kind is not allowed */
  393.         { kKindPopupTop + 2,
  394.           kKindPopupLeft + 3,
  395.           kKindPopupTop + kSmallLineHeight,
  396.           kKindPopupLeft + 35
  397.         },
  398.         StaticText {
  399.             disabled,
  400.             "Kind:"
  401.         },
  402.  
  403.         /* [19] Current kind */
  404.         /* Used when the popup is unavailable because selecting a kind is not allowed */
  405.         { kKindPopupTop + 2,
  406.           kKindPopupLeft + /* arbitrary */ 47,
  407.           kKindPopupTop + kPopupHeight,
  408.           kRightStop
  409.         },
  410.         StaticText {
  411.             disabled,
  412.             ""
  413.         },
  414.  
  415.         /* [20] Editor popup menu */
  416.         { kEditorPopupTop,
  417.           kEditorPopupLeft,
  418.           kEditorPopupTop + kPopupHeight,
  419.           kRightStop
  420.         },
  421.         Control {
  422.             enabled,
  423.             kPasteAsEditorPopupCntl
  424.         },
  425.  
  426.         /* [21] Editor label */
  427.         /* Used when the popup is unavailable because selecting a Editor is not allowed */
  428.         { kEditorPopupTop + 2,
  429.           kEditorPopupLeft + 3,
  430.           kEditorPopupTop + kSmallLineHeight,
  431.           kEditorPopupLeft + 38
  432.         },
  433.         StaticText {
  434.             disabled,
  435.             "Editor:"
  436.         },
  437.  
  438.         /* [22] Current Editor */
  439.         /* Used when the popup is unavailable because selecting a Editor is not allowed */
  440.         { kEditorPopupTop + 2,
  441.           kEditorPopupLeft + 55,
  442.           kEditorPopupTop + kPopupHeight,
  443.           kRightStop
  444.         },
  445.         StaticText {
  446.             disabled,
  447.             "Unknown"
  448.         },
  449.  
  450.         /* [23] Embedded Editor */
  451.         /* Used when the popup is unavailable because a frame is being moved */
  452.         { kEditorPopupTop + 2,
  453.           kEditorPopupLeft + 55,
  454.           kEditorPopupTop + kPopupHeight,
  455.           kRightStop
  456.         },
  457.         StaticText {
  458.             disabled,
  459.             "Unknown"
  460.         },
  461.  
  462.         /* [24] Outline around default button */
  463.         { kBottomStop-kStdButtonHeight-1-4, 
  464.           kRightStop-kOkCancelWidth-3-4, 
  465.           kBottomStop-1+4, 
  466.           kRightStop-3+4
  467.         },
  468.         UserItem {
  469.             disabled
  470.         }
  471.     }
  472. };
  473.  
  474. /* Color table for Paste As Dialog items */
  475. data 'ictb' (kPasteAsDlgID, "Paste As") {
  476.     $"0000 0000" /* [1]  OK button is unaffected                            */
  477.     $"0000 0000" /* [2]  Cancel button is unaffected                        */
  478.     $"0000 0000" /* [3]  Paste with Link checkbox is unaffected                */
  479.     $"0000 0000" /* [4]  Update Links label (enabled) is unaffected            */
  480.     $"4000 0060" /* [5]  Update Links label (disabled) change mode            */
  481.     $"0000 0000" /* [6]  Automatic update radio button is unaffected        */
  482.     $"0000 0000" /* [7]  Manual update radio button is unaffected            */
  483.     $"0000 0000" /* [8]  Horizontal Separator is unaffected                    */
  484.     $"0000 0000" /* [9]  At the destination text is unaffected                */
  485.     $"0000 0000" /* [10] Merge Pict is unaffected                            */
  486.     $"0000 0000" /* [11] User item for disabling is unaffected                */
  487.     $"0000 0000" /* [12] Merge radio button is unaffected                    */
  488.     $"0000 0000" /* [13] Embed Pict is unaffected                            */
  489.     $"0000 0000" /* [14] User item for disabling is unaffected                */
  490.     $"0000 0000" /* [15] Embed radio button is unaffected                    */
  491.     $"0000 0000" /* [16] Embed As popup menu is unaffected                    */
  492.     $"0000 0000" /* [17] Kind popup menu is unaffected                        */
  493.     $"0000 0000" /* [18]                                                     */
  494.     $"0000 0000" /* [19]                                                     */
  495.     $"0000 0000" /* [20]                                                     */
  496.     $"0000 0000" /* [21]                                                     */
  497.     $"0000 0000" /* [22]                                                     */
  498.     $"0000 0000" /* [23]                                                     */
  499.     $"0000 0000" /* [24]                                                     */
  500.     /* Text style record */
  501.     $"0003 0100 000A"      /* Geneva, Bold, 10 */
  502.     $"0000 0000 0000"      /* fore color       */
  503.     $"0000 0000 0000"      /* back color       */
  504.     $"0031"                /* mode = grayishTextOr = 49 */
  505. };
  506.  
  507. /* Window font for Paste As Dialog items */
  508. resource 'finf' (kPasteAsDlgID, purgeable) {
  509.     {
  510.         3,            /* Font Number, 3 = Geneva    */
  511.         plain,        /*         Font Style        */
  512.         10            /*         Font Size        */
  513.     }
  514. };
  515.  
  516. resource 'CNTL' (kPasteAsCheckboxCtrlID, purgeable) {
  517.         { kTopBegin,
  518.           kLeftBegin,
  519.           kTopBegin+kCheckboxHeight,
  520.           kPasteWithLinkTextRight
  521.         },
  522.         0,
  523.         visible,
  524.         1,
  525.         0,
  526.         checkboxProcUseWFont,
  527.         0,                            /* Refcon */
  528.         "Paste with Link"
  529. };
  530.  
  531. resource 'CNTL' (kPasteAsAutoRadioBtnCtrlID, purgeable) {
  532.         { kAutomaticRadioBtnTop,
  533.           kAutomaticRadioBtnLeft,
  534.           kAutomaticRadioBtnTop + kRadioButtonHeight,
  535.           kAutomaticTextRight
  536.         },
  537.         0,
  538.         visible,
  539.         1,
  540.         0,
  541.         radioButProcUseWFont,
  542.         0,                            /* Refcon */
  543.         "Automatically"
  544. };
  545.  
  546. resource 'CNTL' (kPasteAsManualRadioBtnCtrlID, purgeable) {
  547.         { kManualRadioBtnTop,
  548.           kManualRadioBtnLeft,
  549.           kManualRadioBtnTop + kRadioButtonHeight,
  550.           kManualTextRight
  551.         },
  552.         0,
  553.         visible,
  554.         1,
  555.         0,
  556.         radioButProcUseWFont,
  557.         0,                            /* Refcon */
  558.         "Manually"
  559. };
  560.  
  561. resource 'CNTL' (kPasteAsMergeRadioBtnCtrlID, purgeable) {
  562.         { kMergeRadioBtnTop,
  563.           kMergeRadioBtnLeft,
  564.           kMergeRadioBtnTop + kRadioButtonHeight,
  565.           kMergeTextRight
  566.         },
  567.         0,
  568.         visible,
  569.         1,
  570.         0,
  571.         radioButProcUseWFont,
  572.         0,                            /* Refcon */
  573.         "Merge with Contents"
  574. };
  575.  
  576. resource 'CNTL' (kPasteAsEmbedRadioBtnCtrlID, purgeable) {
  577.         { kEmbedRadioBtnTop,
  578.           kEmbedRadioBtnLeft,
  579.           kEmbedRadioBtnTop + kRadioButtonHeight,
  580.           kEmbedTextRight
  581.         },
  582.         0,
  583.         visible,
  584.         1,
  585.         0,
  586.         radioButProcUseWFont,
  587.         0,                            /* Refcon */
  588.         "Embed as:"
  589. };
  590.  
  591. resource 'PICT' (kPasteAsMergePictID, "Merge Icon", purgeable) {
  592.     97,
  593.     {0, 0, 19, 16},
  594.     $"1101 A000 8201 000A 0000 0000 0020 0020"
  595.     $"9000 0200 0000 0000 1300 1000 0000 0000"
  596.     $"1300 1000 0000 0000 1300 1000 00FF FF80"
  597.     $"0180 0192 4980 0180 0193 F980 0180 019F"
  598.     $"F980 0180 019F C980 0180 0192 4980 0180"
  599.     $"01FF FFA0 0083 FF"
  600. };
  601.  
  602. resource 'PICT' (kPasteAsEmbedPictID, "Embed Icon", purgeable) {
  603.     97,
  604.     {0, 0, 19, 16},
  605.     $"1101 A000 8201 000A 0000 0000 0020 0020"
  606.     $"9000 0200 0000 0000 1300 1000 0000 0000"
  607.     $"1300 1000 0000 0000 1300 1000 00FF FF80"
  608.     $"0180 0192 4980 0180 0193 F982 0982 0992"
  609.     $"0982 0982 0993 F980 0180 0192 4980 0180"
  610.     $"01FF FFA0 0083 FF"
  611. };
  612.  
  613. // The "Embed as" popup has no title, because the radio button label occupies the
  614. // same space.  If the radio button isn't selected, the popup is disabled.  If the
  615. // popup had a title which exactly overlayed the radio button label, the title
  616. // would be dimmed and the radio button would appear disabled.
  617. resource 'CNTL' (kPasteAsEmbedPopupCntl, "Embed as", purgeable) {
  618.         { kEmbedPopupTop,
  619.           kEmbedPopupLeft,
  620.           kEmbedPopupTop + kPopupHeight,
  621.           kRightStop
  622.         },
  623.         popupTitleLeftJust,
  624.         visible,
  625.         0,                            /* zero width title; radio button provides title */
  626.         kPasteAsEmbedPopupMenu,        /* resource id of MENU resource */
  627.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  628.         0,                            /* Refcon */
  629.         ""
  630. };
  631.  
  632. resource 'CNTL' (kPasteAsKindPopupCntl, "Kind", purgeable) {
  633.         { kKindPopupTop,
  634.           kKindPopupLeft,
  635.           kKindPopupTop + kPopupHeight,
  636.           kRightStop
  637.         },
  638.         popupTitleLeftJust,
  639.         visible,
  640.         kKindTextWidth,                /* width of title in pixels     */
  641.         kPasteAsKindPopupMenu,        /* resource id of MENU resource */
  642.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  643.         0,                            /* Refcon */
  644.         "Kind:"
  645. };
  646.  
  647. resource 'CNTL' (kPasteAsEditorPopupCntl,"Editor", purgeable) {
  648.         { kEditorPopupTop,
  649.           kEditorPopupLeft,
  650.           kEditorPopupTop + kPopupHeight,
  651.           kRightStop
  652.         },
  653.         popupTitleLeftJust,
  654.         visible,
  655.         kEditorTextWidth,                /* width of title in pixels     */
  656.         kPasteAsEditorPopupMenu,        /* resource id of MENU resource */
  657.         popupMenuCDEFproc+popupUseWFont+popupFixedWidth,
  658.         0,                            /* Refcon */
  659.         "Editor:"
  660. };
  661.  
  662. resource 'MENU' (kPasteAsEmbedPopupMenu, "Embed as", nonpurgeable) {    // 'MENU' resources must not be purgeable [cc]
  663.     kPasteAsEmbedPopupMenu,
  664.     textMenuProc,
  665.     allEnabled,
  666.     enabled,
  667.     "",
  668.     {    /* array: 4 elements */
  669.         "Frame", noIcon, noKey, noMark, plain,
  670.         "Large Icon", noIcon, noKey, noMark, plain,
  671.         "Small Icon", noIcon, noKey, noMark, plain,
  672.         "Thumbnail", noIcon, noKey, noMark, plain
  673.     }
  674. };
  675.  
  676. resource 'MENU' (kPasteAsKindPopupMenu, "Kind", nonpurgeable) {
  677.     kPasteAsKindPopupMenu,
  678.     textMenuProc,
  679.     allEnabled,
  680.     enabled,
  681.     "",
  682.     {    /* array: 1 elements */
  683.         "Translate to…", noIcon, noKey, noMark, italic
  684.     }
  685. };
  686.  
  687. resource 'MENU' (kPasteAsEditorPopupMenu, "Editor", nonpurgeable) {
  688.     kPasteAsEditorPopupMenu,
  689.     textMenuProc,
  690.     allEnabled,
  691.     enabled,
  692.     "",
  693.     {    /* array: 0 elements */
  694.         "<Your editor goes here>", noIcon, noKey, noMark, plain
  695.     }
  696. };
  697.  
  698. //-------------------------------------------------------------------------------------
  699. // Link Source Info Dialog
  700. //-------------------------------------------------------------------------------------
  701.  
  702. #define kLinkDlgLabelRight 87
  703. #define kLinkDlgInfoLeft   97
  704. #define kLinkDlgInfoRight  256
  705.  
  706. resource 'DLOG' (kLinkSrcInfoDlgID, "Link Source Info", purgeable) {
  707.     {74, 114, 235, 487},
  708.     movableDBoxProc,
  709.     visible,
  710.     goAway,
  711.     0x0,
  712.     kLinkSrcInfoDlgID,
  713.     "Link Source Info",
  714.     alertPositionParentWindowScreen
  715. };
  716.  
  717. resource 'DITL' (kLinkSrcInfoDlgID, "Link Source Info", purgeable) {
  718.     {    /* array DITLarray: 16 elements */
  719.         /* [1] kLinkSrcOKBtn */
  720.         {131, 268, 151, 359},
  721.         Button {
  722.             enabled,
  723.             "OK"
  724.         },
  725.         /* [2] kLinkSrcCancelBtn */
  726.         {100, 264, 120, 363},
  727.         Button {
  728.             enabled,
  729.             "Cancel"
  730.         },
  731.         /* [3] Outline around default button */
  732.         { 131-1-4, 268-3-4, 151-1+4, 359-3+4},
  733.         UserItem {
  734.             disabled
  735.         },
  736.         /* [4] kLinkSrcSeparator */
  737.         {76, 264, 77, 363},
  738.         UserItem {
  739.             disabled
  740.         },
  741.         /* [5] NOT USED IN THIS DIALOG; used as a placeholder to keep item numbers
  742.          *                              the same between LinkSrc and LinkDst
  743.          */
  744.         {0, 0, 0, 0},
  745.         Button {
  746.             enabled,
  747.             "Find Source"
  748.         },
  749.         /* [6] kLinkSrcUpdateBtn */
  750.         {34, 264, 54, 363},
  751.         Button {
  752.             enabled,
  753.             "Update Now"
  754.         },
  755.         /* [7] kLinkSrcBreakLinkBtn */
  756.         {7, 264, 27, 363},
  757.         Button {
  758.             enabled,
  759.             "Break Link"
  760.         },
  761.         /* [8] kLinkSrcManualRadioBtn */
  762.         {87, kLinkDlgInfoLeft-3, 102, 172},
  763.         Control {
  764.             enabled,
  765.             kManualRadioBtnCtrlID
  766.         },
  767.         /* [9] kLinkSrcOnSaveRadioBtn */
  768.         {71, kLinkDlgInfoLeft-3, 86, 172},
  769.         Control {
  770.             enabled,
  771.             kOnSaveRadioBtnCtrlID
  772.         },
  773.         /* [10] */
  774.         {71, 8, 87, kLinkDlgLabelRight+1},
  775.         StaticText {
  776.             disabled,
  777.             "Send Updates:"
  778.         },
  779.         /* [11] Modified Date */
  780.         {50, kLinkDlgInfoLeft, 66, kLinkDlgInfoRight},
  781.         StaticText {
  782.             disabled,
  783.             "^2  ^3"
  784.         },
  785.         /* [12] Modified Label */
  786.         {50, 38, 66, kLinkDlgLabelRight},
  787.         StaticText {
  788.             disabled,
  789.             "Updated:"
  790.         },
  791.         /* [13] Creation Date */
  792.         {29, kLinkDlgInfoLeft, 45, kLinkDlgInfoRight},
  793.         StaticText {
  794.             disabled,
  795.             "^0  ^1"
  796.         },
  797.         /* [14] Created Label */
  798.         {29, 39, 45, kLinkDlgLabelRight},
  799.         StaticText {
  800.             disabled,
  801.             "Created:"
  802.         },
  803.         /* [15] Kind */
  804.         {8, kLinkDlgInfoLeft, 24, kLinkDlgInfoRight},
  805.         StaticText {
  806.             disabled,
  807.             "Unknown"
  808.         },
  809.         /* [16] Kind Label */
  810.         {8, 56, 24, kLinkDlgLabelRight},
  811.         StaticText {
  812.             disabled,
  813.             "Kind:"
  814.         }
  815.     }
  816. };
  817.  
  818. resource 'dctb' (kLinkSrcInfoDlgID, purgeable) {
  819.     0,
  820.     0,
  821.     {
  822.         wContentColor,0xFFFF,0xFFFF,0xFFFF
  823.     }
  824. };
  825.  
  826. data 'ictb' (kLinkSrcInfoDlgID, purgeable) {
  827.     $"0000 0000" /* [1]  */
  828.     $"0000 0000" /* [2]  */
  829.     $"0000 0000" /* [3]  */
  830.     $"0000 0000" /* [4]  */
  831.     $"0000 0000" /* [5]  */
  832.     $"0000 0000" /* [6]  */
  833.     $"0000 0000" /* [7]  */
  834.     $"0000 0000" /* [8]  */
  835.     $"0000 0000" /* [9]  */
  836.     $"0002 0040" /* [10] Static text label is Geneva 10 bold */
  837.     $"0000 0000" /* [11] */
  838.     $"0002 0040" /* [12] Static text label is Geneva 10 bold */
  839.     $"0000 0000" /* [13] */
  840.     $"0002 0040" /* [14] Static text label is Geneva 10 bold */
  841.     $"0000 0000" /* [15] */
  842.     $"0002 0040" /* [16] Static text label is Geneva 10 bold */
  843.     /* Text style record */
  844.     $"0001 0100 000A"      /* application font, Bold (high byte), size 10 */
  845.     $"0000 0000 0000"      /* fore color        */
  846.     $"0000 0000 0000 0000" /* back color + mode */
  847. };
  848.  
  849. resource 'finf' (kLinkSrcInfoDlgID, purgeable) {
  850.     {
  851.         3,            /* Font Number, 3 = Geneva    */
  852.         plain,        /*         Font Style        */
  853.         10            /*         Font Size        */
  854.     }
  855. };
  856. //-------------------------------------------------------------------------------------
  857. // Link Destination Info Dialog
  858. //-------------------------------------------------------------------------------------
  859.  
  860. resource 'DLOG' (kLinkDstInfoDlgID, "Link Destination Info", purgeable) {
  861.     {74, 114, 235, 487},
  862.     movableDBoxProc,
  863.     visible,
  864.     goAway,
  865.     0x0,
  866.     kLinkDstInfoDlgID,
  867.     "Link Destination Info",
  868.     alertPositionParentWindowScreen
  869. };
  870.  
  871. resource 'DITL' (kLinkDstInfoDlgID, "Link Destination Info", purgeable) {
  872.     {    /* array DITLarray: 16 elements */
  873.         /* [1] kLinkDstOKBtn */
  874.         {131, 268, 151, 359},
  875.         Button {
  876.             enabled,
  877.             "OK"
  878.         },
  879.         /* [2] kLinkDstCancelBtn */
  880.         {100, 264, 120, 363},
  881.         Button {
  882.             enabled,
  883.             "Cancel"
  884.         },
  885.         /* [3] Outline around default button */
  886.         { 131-1-4, 268-3-4, 151-1+4, 359-3+4},
  887.         UserItem {
  888.             disabled
  889.         },
  890.         /* [4] kLinkDstSeparator */
  891.         {90, 264, 91, 363},
  892.         UserItem {
  893.             disabled
  894.         },
  895.         /* [5] kLinkDstFindSrcBtn */
  896.         {61, 264, 81, 363},
  897.         Button {
  898.             enabled,
  899.             "Find Source"
  900.         },
  901.         /* [6] kLinkDstUpdateBtn */
  902.         {34, 264, 54, 363},
  903.         Button {
  904.             enabled,
  905.             "Update Now"
  906.         },
  907.         /* [7] kLinkDstBreakLinkBtn */
  908.         {7, 264, 27, 363},
  909.         Button {
  910.             enabled,
  911.             "Break Link"
  912.         },
  913.         /* [8] kLinkDstManualRadioBtn */
  914.         {87, kLinkDlgInfoLeft-3, 102, 172},
  915.         Control {
  916.             enabled,
  917.             kManualRadioBtnCtrlID
  918.         },
  919.         /* [9] kLinkDstAutoRadioBtn */
  920.         {71, kLinkDlgInfoLeft-3, 86, 192},
  921.         Control {
  922.             enabled,
  923.             kAutomaticRadioBtnCtrlID
  924.         },
  925.         /* [10] */
  926.         {71, 16, 87, kLinkDlgLabelRight},
  927.         StaticText {
  928.             disabled,
  929.             "Get Updates:"
  930.         },
  931.         /* [11] Modified Date */
  932.         {50, kLinkDlgInfoLeft, 66, kLinkDlgInfoRight},
  933.         StaticText {
  934.             disabled,
  935.             "^2  ^3"
  936.         },
  937.         /* [12] Modified Label */
  938.         {50, 38, 66, kLinkDlgLabelRight},
  939.         StaticText {
  940.             disabled,
  941.             "Updated:"
  942.         },
  943.         /* [13] Creation Date */
  944.         {29, kLinkDlgInfoLeft, 45, kLinkDlgInfoRight},
  945.         StaticText {
  946.             disabled,
  947.             "^0  ^1"
  948.         },
  949.         /* [14] Created Label */
  950.         {29, 39, 45, kLinkDlgLabelRight},
  951.         StaticText {
  952.             disabled,
  953.             "Created:"
  954.         },
  955.         /* [15] Kind */
  956.         {8, kLinkDlgInfoLeft, 24, kLinkDlgInfoRight},
  957.         StaticText {
  958.             disabled,
  959.             "Unknown"
  960.         },
  961.         /* [16] Kind Label */
  962.         {8, 56, 24, kLinkDlgLabelRight},
  963.         StaticText {
  964.             disabled,
  965.             "Kind:"
  966.         }
  967.     }
  968. };
  969.  
  970. resource 'dctb' (kLinkDstInfoDlgID, purgeable) {
  971.     0,
  972.     0,
  973.     {
  974.         wContentColor,0xFFFF,0xFFFF,0xFFFF
  975.     }
  976. };
  977.  
  978. data 'ictb' (kLinkDstInfoDlgID) {
  979.     $"0000 0000" /* [1]  */
  980.     $"0000 0000" /* [2]  */
  981.     $"0000 0000" /* [3]  */
  982.     $"0000 0000" /* [4]  */
  983.     $"0000 0000" /* [5]  */
  984.     $"0000 0000" /* [6]  */
  985.     $"0000 0000" /* [7]  */
  986.     $"0000 0000" /* [8]  */
  987.     $"0000 0000" /* [9]  */
  988.     $"0002 0040" /* [10] Static text label is Geneva 10 bold */
  989.     $"0000 0000" /* [11] */
  990.     $"0002 0040" /* [12] Static text label is Geneva 10 bold */
  991.     $"0000 0000" /* [13] */
  992.     $"0002 0040" /* [14] Static text label is Geneva 10 bold */
  993.     $"0000 0000" /* [15] */
  994.     $"0002 0040" /* [16] Static text label is Geneva 10 bold */
  995.     /* Text style record */
  996.     $"0001 0100 000A"      /* application font, Bold (high byte), size 10 */
  997.     $"0000 0000 0000"      /* fore color        */
  998.     $"0000 0000 0000 0000" /* back color + mode */
  999. };
  1000.  
  1001. resource 'finf' (kLinkDstInfoDlgID, purgeable) {
  1002.     {
  1003.         3,            /* Font Number, 3 = Geneva    */
  1004.         plain,        /*         Font Style        */
  1005.         10            /*         Font Size        */
  1006.     }
  1007. };
  1008.  
  1009. resource 'CNTL' (kAutomaticRadioBtnCtrlID, purgeable) {
  1010.         {90, kLinkDlgInfoLeft-3, 105, 192},
  1011.         0,
  1012.         visible,
  1013.         1,
  1014.         0,
  1015.         radioButProcUseWFont,
  1016.         0,                            /* Refcon */
  1017.         "Automatically"
  1018. };
  1019.  
  1020. resource 'CNTL' (kOnSaveRadioBtnCtrlID, purgeable) {
  1021.         {90, kLinkDlgInfoLeft-3, 105, 172},
  1022.         0,
  1023.         visible,
  1024.         1,
  1025.         0,
  1026.         radioButProcUseWFont,
  1027.         0,                            /* Refcon */
  1028.         "On Save"
  1029. };
  1030.  
  1031. resource 'CNTL' (kManualRadioBtnCtrlID, purgeable) {
  1032.         {106, kLinkDlgInfoLeft-3, 121, 172},
  1033.         0,
  1034.         visible,
  1035.         1,
  1036.         0,
  1037.         radioButProcUseWFont,
  1038.         0,                            /* Refcon */
  1039.         "Manually"
  1040. };
  1041.  
  1042. #endif /* #ifndef _USE_DIALOGS_LIB_ */
  1043.  
  1044. //-------------------------------------------------------------------------------------
  1045. // Link Update Alert
  1046. //-------------------------------------------------------------------------------------
  1047.  
  1048. #define kLinkUpdateTextLines 5
  1049. #define kLinkUpdateTextLineHeight 16
  1050. #define kLinkUpdateTextHeight kLinkUpdateTextLines*kLinkUpdateTextLineHeight
  1051. #define kLinkUpdateLeft 78
  1052. #define kLinkUpdateTextWidth 245
  1053. #define kLinkUpdateRight kLinkUpdateLeft+kLinkUpdateTextWidth
  1054. #define kLinkUpdateBtnTop 13+kLinkUpdateTextHeight+13
  1055. #define kLinkUpdateBtnBottom kLinkUpdateBtnTop+20
  1056. #define kLinkUpdateBtnWidth 70
  1057. #define kLinkUpdateContinueBtnLeft kLinkUpdateRight-kLinkUpdateBtnWidth
  1058. #define kLinkUpdateStopBtnLeft kLinkUpdateRight-kLinkUpdateBtnWidth-13-kLinkUpdateBtnWidth
  1059.  
  1060. resource 'ALRT' (kLinkUpdateAlertID, "Link Update", purgeable) {
  1061.     {0, 0, kLinkUpdateBtnBottom+13, kLinkUpdateRight+13},
  1062.     kLinkUpdateAlertID,
  1063.     {    /* array: 4 elements */
  1064.         /* [1] */
  1065.         Ok, visible, sound1,
  1066.         /* [2] */
  1067.         Ok, visible, sound1,
  1068.         /* [3] */
  1069.         Ok, visible, sound1,
  1070.         /* [4] */
  1071.         Ok, visible, sound1
  1072.     },
  1073.     alertPositionParentWindowScreen
  1074. };
  1075.  
  1076. resource 'DITL' (kLinkUpdateAlertID, "Link Update", purgeable) {
  1077.     {    /* array DITLarray: 4 elements */
  1078.         /* [1] */
  1079.         {kLinkUpdateBtnTop, kLinkUpdateContinueBtnLeft, kLinkUpdateBtnBottom, kLinkUpdateRight},
  1080.         Button {
  1081.             enabled,
  1082.             "Update"
  1083.         },
  1084.         /* [2] */
  1085.         {kLinkUpdateBtnTop, kLinkUpdateStopBtnLeft, kLinkUpdateBtnBottom, kLinkUpdateStopBtnLeft+kLinkUpdateBtnWidth},
  1086.         Button {
  1087.             enabled,
  1088.             "Stop"
  1089.         },
  1090.         /* [3] */
  1091.         {13, 23, 45, 55},
  1092.         Icon {
  1093.             disabled,
  1094.             2
  1095.         },
  1096.         /* [4] */
  1097.         {13, kLinkUpdateLeft, 13+kLinkUpdateTextHeight, kLinkUpdateRight},
  1098.         StaticText {
  1099.             disabled,
  1100.             "Editing a link source has caused an update loop.\n"
  1101.             "\n"
  1102.             "Press Stop to interrupt updating, or press "
  1103.             "Update to continue."
  1104.         }
  1105.     }
  1106. };
  1107.  
  1108. //-------------------------------------------------------------------------------------
  1109. // Link Status Alert
  1110. //-------------------------------------------------------------------------------------
  1111.  
  1112. #define kLinkStatusTextLines 6
  1113. #define kLinkStatusTextLineHeight 16
  1114. #define kLinkStatusTextHeight kLinkStatusTextLines*kLinkStatusTextLineHeight
  1115. #define kLinkStatusLeft 78
  1116. #define kLinkStatusTextWidth 245
  1117. #define kLinkStatusRight kLinkStatusLeft+kLinkStatusTextWidth
  1118. #define kLinkStatusBtnTop 13+kLinkStatusTextHeight+13
  1119. #define kLinkStatusBtnBottom kLinkStatusBtnTop+20
  1120. #define kLinkStatusBtnWidth 70
  1121. #define kLinkStatusOKBtnLeft kLinkStatusRight-kLinkStatusBtnWidth
  1122.  
  1123. resource 'ALRT' (kLinkStatusAlertID, "Link Status", purgeable) {
  1124.     {0, 0, kLinkStatusBtnBottom+13, kLinkStatusRight+13},
  1125.     kLinkStatusAlertID,
  1126.     {    /* array: 4 elements */
  1127.         /* [1] */
  1128.         Ok, visible, sound1,
  1129.         /* [2] */
  1130.         Ok, visible, sound1,
  1131.         /* [3] */
  1132.         Ok, visible, sound1,
  1133.         /* [4] */
  1134.         Ok, visible, sound1
  1135.     },
  1136.     alertPositionParentWindowScreen
  1137. };
  1138.  
  1139. resource 'DITL' (kLinkStatusAlertID, "Link Status", purgeable) {
  1140.     {    /* array DITLarray: 3 elements */
  1141.         /* [1] */
  1142.         {kLinkStatusBtnTop, kLinkStatusOKBtnLeft, kLinkStatusBtnBottom, kLinkStatusRight},
  1143.         Button {
  1144.             enabled,
  1145.             "OK"
  1146.         },
  1147.         /* [2] */
  1148.         {13, 23, 45, 55},
  1149.         Icon {
  1150.             disabled,
  1151.             2
  1152.         },
  1153.         /* [3] */
  1154.         {13, kLinkStatusLeft, 13+kLinkStatusTextHeight, kLinkStatusRight},
  1155.         StaticText {
  1156.             disabled,
  1157.             "The link information may not be accurate, "
  1158.             "because a problem was encountered getting information about the "
  1159.             "source of the link.\n"
  1160.             "\n"
  1161.             "(Error ^0)"
  1162.         }
  1163.     }
  1164. };
  1165.  
  1166. //-------------------------------------------------------------------------------------
  1167. // Missing Link Edition Alert
  1168. //-------------------------------------------------------------------------------------
  1169.  
  1170. #define kLinkEditionTextLines 6
  1171. #define kLinkEditionTextLineHeight 16
  1172. #define kLinkEditionTextHeight kLinkEditionTextLines*kLinkEditionTextLineHeight
  1173. #define kLinkEditionLeft 78
  1174. #define kLinkEditionTextWidth 305
  1175. #define kLinkEditionRight kLinkEditionLeft+kLinkEditionTextWidth
  1176. #define kLinkEditionBtnTop 13+kLinkEditionTextHeight+13
  1177. #define kLinkEditionBtnBottom kLinkEditionBtnTop+20
  1178. #define kLinkEditionBtnWidth 70
  1179. #define kLinkEditionOKBtnLeft kLinkEditionRight-kLinkEditionBtnWidth
  1180.  
  1181. resource 'ALRT' (kLinkEditionAlertID, "Link Edition", purgeable) {
  1182.     {0, 0, kLinkEditionBtnBottom+13, kLinkEditionRight+13},
  1183.     kLinkEditionAlertID,
  1184.     {    /* array: 4 elements */
  1185.         /* [1] */
  1186.         Ok, visible, sound1,
  1187.         /* [2] */
  1188.         Ok, visible, sound1,
  1189.         /* [3] */
  1190.         Ok, visible, sound1,
  1191.         /* [4] */
  1192.         Ok, visible, sound1
  1193.     },
  1194.     alertPositionParentWindowScreen
  1195. };
  1196.  
  1197. resource 'DITL' (kLinkEditionAlertID, "Link Edition", purgeable) {
  1198.     {    /* array DITLarray: 3 elements */
  1199.         /* [1] */
  1200.         {kLinkEditionBtnTop, kLinkEditionOKBtnLeft, kLinkEditionBtnBottom, kLinkEditionRight},
  1201.         Button {
  1202.             enabled,
  1203.             "OK"
  1204.         },
  1205.         /* [2] */
  1206.         {13, 23, 45, 55},
  1207.         Icon {
  1208.             disabled,
  1209.             2
  1210.         },
  1211.         /* [3] */
  1212.         {13, kLinkEditionLeft, 13+kLinkEditionTextHeight, kLinkEditionRight},
  1213.         StaticText {
  1214.             disabled,
  1215.             "The source of this link could not be found.\n"
  1216.             "\n"
  1217.             "If you have not broken the link at the source, you may be able to "
  1218.             "get a more recent update by opening the document containing "
  1219.             "the source of this link."
  1220.         }
  1221.     }
  1222. };
  1223.  
  1224. //-------------------------------------------------------------------------------------
  1225. // Color pattern used by link dialogs
  1226. //-------------------------------------------------------------------------------------
  1227.  
  1228. data 'ppat' (kLinkDlgsppatID) {
  1229.     $"0001 0000 001C 0000 004E 0000 0000 FFFF"
  1230.     $"0000 0000 AA55 AA55 AA55 AA55 0000 0000"
  1231.     $"8001 0000 0000 0008 0008 0000 0000 0000"
  1232.     $"0000 0048 0000 0048 0000 0000 0001 0001"
  1233.     $"0001 0000 0000 0000 0056 0000 0000 55AA"
  1234.     $"55AA 55AA 55AA 0000 0000 0000 0001 0000"
  1235.     $"7777 7777 7777 0001 8888 8888 8888"
  1236. };
  1237.  
  1238. //-------------------------------------------------------------------------------------
  1239. // Strings used by the Link Manager
  1240. //-------------------------------------------------------------------------------------
  1241.  
  1242. resource 'STR ' (kODLinkMgrCannotShowSourceID, purgeable) {
  1243.     "Cannot show source of link (error ^0)."
  1244. };
  1245.  
  1246. resource 'STR ' (kODLinkMgrEditionTemplateID, purgeable) {
  1247.     "^0 Link ^1"
  1248. };
  1249.  
  1250. //-------------------------------------------------------------------------------------
  1251. // Strings used by Link Info dialogs
  1252. //-------------------------------------------------------------------------------------
  1253.  
  1254. resource 'STR ' (kODLinkInfoStrUnknownID, purgeable) {
  1255.     "Unknown"
  1256. };
  1257.  
  1258. //-------------------------------------------------------------------------------------
  1259. // Strings used by Paste As dialogs
  1260. //-------------------------------------------------------------------------------------
  1261.  
  1262. resource 'STR ' (kODPasteAsNoUserKindID, purgeable) {
  1263.     "Unknown kind<I;"
  1264. };
  1265.